package cn.wit.test;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.List;

import org.junit.Test;

public class Demo {
	
	@Test
	public void count() throws IOException {
		String file = "D:\\暑期作业与笔记\\camp\\code\\day10\\src\\cn\\wit\\test\\DemoFile.java";
		List<String> lines = Files.readAllLines(Paths.get(file));
		for(String line:lines) {
			String[] words=line.split("[ ,();?<>\t]");
			System.out.println(Arrays.toString(words));
		}
	}


}
